<div class="panel panel-default no-margin">
    <div class="panel-body">
        <form class="form-inline" method="get" action="{$attr.action}">
            <volist name="searchs" id="item">
                <php>
                    $item['value'] = I('get.'.$item['name']);
                    $item['form']['attr'] .= ' placeholder="'.$item['title'].'"';
                </php>
                <div class="form-group">
                    <switch name="item.type">
                        <case value="select" break="1">
                            <include file='./Common/Builder/Form/select.html'/>
                        </case>
                        <case value="dict" break="1">
                            <include file='./Common/Builder/Form/dict.html'/>
                        </case>
                        <case value="date" break="1">
                            <include file='./Common/Builder/Form/date.html'/>
                        </case>
                        <case value="datetime" break="1">
                            <include file='./Common/Builder/Form/datetime.html'/>
                        </case>
                        <case value="time" break="1">
                            <include file='./Common/Builder/Form/time.html'/>
                        </case>
                        <case value="text" break="1">
                            <include file='./Common/Builder/Form/text.html'/>
                        </case>
                        <case value="number" break="1">
                            <include file='./Common/Builder/Form/number.html'/>
                        </case>
                        <case value="relation" break="1">
                            <include file='./Common/Builder/Form/relation.html'/>
                        </case>
                        <case value="hidden" break="1">
                            <input type="hidden" name="{$item.name}" value="{$item.value}">
                        </case>
                        <default/>
                        <input type="text" class="form-control"name="{$item.name}"
                               value="{$item.value}" placeholder="{$item.title}">
                    </switch>
                </div>
            </volist>
            <button type="submit" class="btn btn-default"><span
                    class="glyphicon glyphicon-search"></span>搜索
            </button>
        </form>
    </div>
</div>